<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:if test="${code==1}">
	<form id="pagerForm" method="post"
		action="recordRuleAction.action?toResult=searchRecordRule&rightId=${rightId}">
		<input type="hidden" name="pageNum" value="${page.currentPage }" />
		<input type="hidden" name="pageSize" value="${page.pageSize }" /> 
	</form>

	<form onsubmit="return navTabSearch(this);"
		action="recordRuleAction.action?toResult=searchRecordRule&rightId=${rightId}"
		method="post">
		<div class="pageHeader">
			<input type="hidden" name="init" value=0>
		</div>

		<div class="pageContent">
			<div class="panelBar">
				<ul class="toolBar">
					<c:forEach items="${righSubtList}" var="rightsub">
						<!-- 修改 -->
						<c:if test="${fn:contains(rightsub.rightValue,'updateRecordRule')}">
							<li><a class="edit"
								href="${rightsub.rightValue}&supportID={sid_support}&rightId=${rightId}"
								target="navTab"><span>${rightsub.rightName}</span> </a></li>
							<li class="line">line</li>
						</c:if>
					</c:forEach>
				</ul>
			</div>
			<table class="list" width="100%" layoutH="138">
				<thead>
					<tr>
						<th align="center">序号</th>
						<th align="center">一小时内</th>
						<th align="center">1~1.5小时内</th>
						<th align="center">超过一小时内</th>
						<th align="center">恶劣天气额外奖励</th>
						<th align="center">类型</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator var="recordRule" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#recordRule.id" />">
							<th width="5%" align="center">
								<s:property value="page.pageSize * (page.currentPage-1) + #st.index + 1" />
							</th>
							<th width="5%" align="center">
								<s:property value="#recordRule.oneHourRecord" />
							</th>
							<th width="5%" align="center">
								<s:property value="#recordRule.overHalfRecord" />
							</th>
							<th width="5%" align="center">
								<s:property value="#recordRule.overOneRecord" />
							</th>
							<th width="5%" align="center">
								<s:property value="#recordRule.AddedRecord" />
							</th>
							<th width="5%" align="center">
								<s:if test="#recordRule.recordFlag == 0">
									普通件
								</s:if>	
								<s:elseif test="#recordRule.recordFlag == 1">
									同城/公益
								</s:elseif>							
							</th>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab"
					totalCount="${page.totalNum }" numPerPage="${page.pageSize }"
					pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>